<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title></title>
    </head>
    <body>
        
         <div align="right"> <a href="./deconnexion.php">Déconnexion</a></div>
         <link rel="stylesheet" href="./formCSS.css">
         <br><br>
         <center>
          <fieldset style="border:solid 1px black; padding:20px; width:370px; color:midnightblue; "><legend>modification données collaborateur</legend>
              <table>
        <form method="POST">
            <?php
            include './Administrateur.php';
            
            $db = mysql_connect("localhost","root","root");
         mysql_selectdb("projet2", $db); 
         $a2 = new Administrateur();
            $a2->PassageCol();
         $sql0 = mysql_query("select col from modification where id='col'");
         $row0 = mysql_fetch_array($sql0);
         $var = $row0['col'];
         $sql1 = mysql_query("select * from collaborateur where login='$var'");
         $ro = mysql_fetch_array($sql1);
         ?>
            <tr><td>  login</td><td><input type="text" name="logincol" value="<?php echo $ro['login']; ?>">  </td></tr>
           <tr><td> mot de passe</td><td><input type="password" name="motdepassecol" value="<?php echo $ro['motdepasse']; ?>"> </td></tr>
          <tr><td>  nom</td><td><input type="text" name="nomcol" value="<?php echo $ro['nom']; ?>"></td></tr>
        <tr><td>    prenom</td><td><input type="text" name="prenomcol" value="<?php echo $ro['prenom']; ?>"></td></tr>
        <tr><td>    mail</td><td> <input type="text" name="mailcol" value="<?php echo $ro['email']; ?>"></td></tr>
        <tr><td>    services</td><td><SELECT name="service" size="1" >
                <OPTION value="service 1">service 1</option>
                <OPTION value="service 2">service 2</option>
                <OPTION value='service 3'>service 3</option>
            </SELECT></td></tr>
        <tr><td> </td><td> <br><br><br>  <input type="submit" value="modifier"></td></tr>
            
        </form>
                  </table>
          </fieldset>
        <?php
        
        $a = new Administrateur();
        $a->ModifierCollaborateur();
        ?>
         </center>
    </body>
</html>
